class Notifier < ActionMailer::Base
  default :from => "from@example.com"

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.notifier.reset_password.subject
  #
  def reset_password
    @greeting = "Hi"

    
  end
  
  def send_contact_mail(name, email, message)
    @message = message
    mail :to => "minhluan@hoangkhang.com.vn", :subject => "Contact mail from #{name + " <" + email + ">"}", :date => Time.now, :from => name 
  end
end
